﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace MyList_Enumerator
{
    class Person : IComparable
    {
        public string Name { get; set; }
        //public string Surname { get; set; }
        //public DateTime Birthday { get; set; }
        public int Age { get; set; }

        public int CompareTo(object obj)
        {
            throw new NotImplementedException();
        }

        public override string ToString()
        {
            return Name + "(" + Age.ToString() + ")";
        }
    }
}
